package Classwork;
        class sc{
            double ra;
            int he;
            double pi;
            void setSc(double r,int h,double p){
                pi=p;
                ra=r;
                he=h;
            }
            double area(){
                return pi*ra*ra;
            }
            double v(){
                return area()*he;
            }
        }
public class Work06 {
    public static void main(String[] args) {
        sc volu=new sc();
        volu.setSc(2.5,5,3.14);
        System.out.println("圆的半径："+ volu.ra);
        System.out.println("圆的高:"+volu.he);
        System.out.println("圆周率："+volu.pi);
        System.out.print("圆柱");
        System.out.println("底面积："+ volu.area());
        System.out.println("圆柱体积："+volu.v());
    }
    }

